package com.sl.water.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @description:
 * @author: duan
 * @time: 2025-06-26 11:43
 */
@Data
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@AllArgsConstructor
@TableName("plan_control_fhz")
@Builder
public class PlanControlFhz extends Model<PlanControlFhz> {
    @Schema(description = "分洪闸调度ID")
    @TableId(type = IdType.AUTO)
    private Long id;

    @Schema(description = "预案ID")
    private long planId;

    @Schema(description = "闸门开启时间")
    private LocalDateTime zmkqsj;

    @Schema(description = "闸门开度")
    private Integer zmkd;

    @Schema(description = "分洪流量")
    private BigDecimal fhFlow;

    @Schema(description = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdTime;

    @Schema(description = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedTime;
}
